
/**
 * This is a generated class and is not intended for modification.  
 */
package com.model.valueObjects
{
import com.adobe.fiber.styles.IStyle;
import com.adobe.fiber.styles.Style;
import com.adobe.fiber.styles.StyleValidator;
import com.adobe.fiber.valueobjects.AbstractEntityMetadata;
import com.adobe.fiber.valueobjects.AvailablePropertyIterator;
import com.adobe.fiber.valueobjects.IPropertyIterator;
import mx.events.ValidationResultEvent;
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.valueobjects.IModelType;
import mx.events.PropertyChangeEvent;

use namespace model_internal;

[ExcludeClass]
internal class _VoEnquiryHeaderEntityMetadata extends com.adobe.fiber.valueobjects.AbstractEntityMetadata
{
    private static var emptyArray:Array = new Array();

    model_internal static var allProperties:Array = new Array("other_part_no", "enq_sup_serialnumber", "supplier_serialnumber_fk", "unitPrice", "listprice", "pro_name", "total_qty", "enq_code", "cre_userid_fk", "part_number", "unit_price", "enq_remarks", "supplier_fk", "pro_description", "netprice", "pro_qty", "activestatus", "currency_serialnumber_fk", "enq_date", "current_rate", "enq_detserialnumber", "on_hand", "total_amount", "model_no", "cre_datetime", "enq_serialnumber", "pro_total_price", "stamp_number", "pro_serialnumber_fk", "sup_currency", "pro_remarks", "supplier_currency_fk", "enq_edit");
    model_internal static var allAssociationProperties:Array = new Array();
    model_internal static var allRequiredProperties:Array = new Array("other_part_no", "enq_sup_serialnumber", "supplier_serialnumber_fk", "unitPrice", "listprice", "pro_name", "total_qty", "enq_code", "cre_userid_fk", "part_number", "unit_price", "enq_remarks", "supplier_fk", "pro_description", "netprice", "pro_qty", "activestatus", "currency_serialnumber_fk", "enq_date", "current_rate", "enq_detserialnumber", "on_hand", "total_amount", "model_no", "cre_datetime", "enq_serialnumber", "pro_total_price", "stamp_number", "pro_serialnumber_fk", "sup_currency", "pro_remarks", "supplier_currency_fk", "enq_edit");
    model_internal static var allAlwaysAvailableProperties:Array = new Array("other_part_no", "enq_sup_serialnumber", "supplier_serialnumber_fk", "unitPrice", "listprice", "pro_name", "total_qty", "enq_code", "cre_userid_fk", "part_number", "unit_price", "enq_remarks", "supplier_fk", "pro_description", "netprice", "pro_qty", "activestatus", "currency_serialnumber_fk", "enq_date", "current_rate", "enq_detserialnumber", "on_hand", "total_amount", "model_no", "cre_datetime", "enq_serialnumber", "pro_total_price", "stamp_number", "pro_serialnumber_fk", "sup_currency", "pro_remarks", "supplier_currency_fk", "enq_edit");
    model_internal static var guardedProperties:Array = new Array();
    model_internal static var dataProperties:Array = new Array("other_part_no", "enq_sup_serialnumber", "supplier_serialnumber_fk", "unitPrice", "listprice", "pro_name", "total_qty", "enq_code", "cre_userid_fk", "part_number", "unit_price", "enq_remarks", "supplier_fk", "pro_description", "netprice", "pro_qty", "activestatus", "currency_serialnumber_fk", "enq_date", "current_rate", "enq_detserialnumber", "on_hand", "total_amount", "model_no", "cre_datetime", "enq_serialnumber", "pro_total_price", "stamp_number", "pro_serialnumber_fk", "sup_currency", "pro_remarks", "supplier_currency_fk", "enq_edit");
    model_internal static var derivedProperties:Array = new Array();
    model_internal static var collectionProperties:Array = new Array("other_part_no", "enq_sup_serialnumber", "supplier_serialnumber_fk", "unitPrice", "listprice", "pro_name", "part_number", "unit_price", "supplier_fk", "pro_description", "netprice", "pro_qty", "on_hand", "model_no", "pro_total_price", "stamp_number", "pro_serialnumber_fk", "sup_currency", "pro_remarks", "supplier_currency_fk");
    model_internal static var collectionBaseMap:Object;
    model_internal static var entityName:String = "VoEnquiryHeader";
    model_internal static var dependentsOnMap:Object;
    model_internal static var dependedOnServices:Array = new Array();

    
    model_internal var _other_part_noIsValid:Boolean;
    model_internal var _other_part_noValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _other_part_noIsValidCacheInitialized:Boolean = false;
    model_internal var _other_part_noValidationFailureMessages:Array;
    
    model_internal var _enq_sup_serialnumberIsValid:Boolean;
    model_internal var _enq_sup_serialnumberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _enq_sup_serialnumberIsValidCacheInitialized:Boolean = false;
    model_internal var _enq_sup_serialnumberValidationFailureMessages:Array;
    
    model_internal var _supplier_serialnumber_fkIsValid:Boolean;
    model_internal var _supplier_serialnumber_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _supplier_serialnumber_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _supplier_serialnumber_fkValidationFailureMessages:Array;
    
    model_internal var _unitPriceIsValid:Boolean;
    model_internal var _unitPriceValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _unitPriceIsValidCacheInitialized:Boolean = false;
    model_internal var _unitPriceValidationFailureMessages:Array;
    
    model_internal var _listpriceIsValid:Boolean;
    model_internal var _listpriceValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _listpriceIsValidCacheInitialized:Boolean = false;
    model_internal var _listpriceValidationFailureMessages:Array;
    
    model_internal var _pro_nameIsValid:Boolean;
    model_internal var _pro_nameValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_nameIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_nameValidationFailureMessages:Array;
    
    model_internal var _enq_codeIsValid:Boolean;
    model_internal var _enq_codeValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _enq_codeIsValidCacheInitialized:Boolean = false;
    model_internal var _enq_codeValidationFailureMessages:Array;
    
    model_internal var _part_numberIsValid:Boolean;
    model_internal var _part_numberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _part_numberIsValidCacheInitialized:Boolean = false;
    model_internal var _part_numberValidationFailureMessages:Array;
    
    model_internal var _unit_priceIsValid:Boolean;
    model_internal var _unit_priceValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _unit_priceIsValidCacheInitialized:Boolean = false;
    model_internal var _unit_priceValidationFailureMessages:Array;
    
    model_internal var _enq_remarksIsValid:Boolean;
    model_internal var _enq_remarksValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _enq_remarksIsValidCacheInitialized:Boolean = false;
    model_internal var _enq_remarksValidationFailureMessages:Array;
    
    model_internal var _supplier_fkIsValid:Boolean;
    model_internal var _supplier_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _supplier_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _supplier_fkValidationFailureMessages:Array;
    
    model_internal var _pro_descriptionIsValid:Boolean;
    model_internal var _pro_descriptionValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_descriptionIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_descriptionValidationFailureMessages:Array;
    
    model_internal var _netpriceIsValid:Boolean;
    model_internal var _netpriceValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _netpriceIsValidCacheInitialized:Boolean = false;
    model_internal var _netpriceValidationFailureMessages:Array;
    
    model_internal var _pro_qtyIsValid:Boolean;
    model_internal var _pro_qtyValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_qtyIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_qtyValidationFailureMessages:Array;
    
    model_internal var _currency_serialnumber_fkIsValid:Boolean;
    model_internal var _currency_serialnumber_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _currency_serialnumber_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _currency_serialnumber_fkValidationFailureMessages:Array;
    
    model_internal var _enq_dateIsValid:Boolean;
    model_internal var _enq_dateValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _enq_dateIsValidCacheInitialized:Boolean = false;
    model_internal var _enq_dateValidationFailureMessages:Array;
    
    model_internal var _enq_detserialnumberIsValid:Boolean;
    model_internal var _enq_detserialnumberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _enq_detserialnumberIsValidCacheInitialized:Boolean = false;
    model_internal var _enq_detserialnumberValidationFailureMessages:Array;
    
    model_internal var _on_handIsValid:Boolean;
    model_internal var _on_handValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _on_handIsValidCacheInitialized:Boolean = false;
    model_internal var _on_handValidationFailureMessages:Array;
    
    model_internal var _model_noIsValid:Boolean;
    model_internal var _model_noValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _model_noIsValidCacheInitialized:Boolean = false;
    model_internal var _model_noValidationFailureMessages:Array;
    
    model_internal var _cre_datetimeIsValid:Boolean;
    model_internal var _cre_datetimeValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _cre_datetimeIsValidCacheInitialized:Boolean = false;
    model_internal var _cre_datetimeValidationFailureMessages:Array;
    
    model_internal var _pro_total_priceIsValid:Boolean;
    model_internal var _pro_total_priceValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_total_priceIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_total_priceValidationFailureMessages:Array;
    
    model_internal var _stamp_numberIsValid:Boolean;
    model_internal var _stamp_numberValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _stamp_numberIsValidCacheInitialized:Boolean = false;
    model_internal var _stamp_numberValidationFailureMessages:Array;
    
    model_internal var _pro_serialnumber_fkIsValid:Boolean;
    model_internal var _pro_serialnumber_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_serialnumber_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_serialnumber_fkValidationFailureMessages:Array;
    
    model_internal var _sup_currencyIsValid:Boolean;
    model_internal var _sup_currencyValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _sup_currencyIsValidCacheInitialized:Boolean = false;
    model_internal var _sup_currencyValidationFailureMessages:Array;
    
    model_internal var _pro_remarksIsValid:Boolean;
    model_internal var _pro_remarksValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _pro_remarksIsValidCacheInitialized:Boolean = false;
    model_internal var _pro_remarksValidationFailureMessages:Array;
    
    model_internal var _supplier_currency_fkIsValid:Boolean;
    model_internal var _supplier_currency_fkValidator:com.adobe.fiber.styles.StyleValidator;
    model_internal var _supplier_currency_fkIsValidCacheInitialized:Boolean = false;
    model_internal var _supplier_currency_fkValidationFailureMessages:Array;

    model_internal var _instance:_Super_VoEnquiryHeader;
    model_internal static var _nullStyle:com.adobe.fiber.styles.Style = new com.adobe.fiber.styles.Style();

    public function _VoEnquiryHeaderEntityMetadata(value : _Super_VoEnquiryHeader)
    {
        // initialize property maps
        if (model_internal::dependentsOnMap == null)
        {
            // depenents map
            model_internal::dependentsOnMap = new Object();
            model_internal::dependentsOnMap["other_part_no"] = new Array();
            model_internal::dependentsOnMap["enq_sup_serialnumber"] = new Array();
            model_internal::dependentsOnMap["supplier_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["unitPrice"] = new Array();
            model_internal::dependentsOnMap["listprice"] = new Array();
            model_internal::dependentsOnMap["pro_name"] = new Array();
            model_internal::dependentsOnMap["total_qty"] = new Array();
            model_internal::dependentsOnMap["enq_code"] = new Array();
            model_internal::dependentsOnMap["cre_userid_fk"] = new Array();
            model_internal::dependentsOnMap["part_number"] = new Array();
            model_internal::dependentsOnMap["unit_price"] = new Array();
            model_internal::dependentsOnMap["enq_remarks"] = new Array();
            model_internal::dependentsOnMap["supplier_fk"] = new Array();
            model_internal::dependentsOnMap["pro_description"] = new Array();
            model_internal::dependentsOnMap["netprice"] = new Array();
            model_internal::dependentsOnMap["pro_qty"] = new Array();
            model_internal::dependentsOnMap["activestatus"] = new Array();
            model_internal::dependentsOnMap["currency_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["enq_date"] = new Array();
            model_internal::dependentsOnMap["current_rate"] = new Array();
            model_internal::dependentsOnMap["enq_detserialnumber"] = new Array();
            model_internal::dependentsOnMap["on_hand"] = new Array();
            model_internal::dependentsOnMap["total_amount"] = new Array();
            model_internal::dependentsOnMap["model_no"] = new Array();
            model_internal::dependentsOnMap["cre_datetime"] = new Array();
            model_internal::dependentsOnMap["enq_serialnumber"] = new Array();
            model_internal::dependentsOnMap["pro_total_price"] = new Array();
            model_internal::dependentsOnMap["stamp_number"] = new Array();
            model_internal::dependentsOnMap["pro_serialnumber_fk"] = new Array();
            model_internal::dependentsOnMap["sup_currency"] = new Array();
            model_internal::dependentsOnMap["pro_remarks"] = new Array();
            model_internal::dependentsOnMap["supplier_currency_fk"] = new Array();
            model_internal::dependentsOnMap["enq_edit"] = new Array();

            // collection base map
            model_internal::collectionBaseMap = new Object()
            model_internal::collectionBaseMap["other_part_no"] = "String";
            model_internal::collectionBaseMap["enq_sup_serialnumber"] = "int";
            model_internal::collectionBaseMap["supplier_serialnumber_fk"] = "int";
            model_internal::collectionBaseMap["unitPrice"] = "Object";
            model_internal::collectionBaseMap["listprice"] = "Number";
            model_internal::collectionBaseMap["pro_name"] = "String";
            model_internal::collectionBaseMap["part_number"] = "String";
            model_internal::collectionBaseMap["unit_price"] = "Object";
            model_internal::collectionBaseMap["supplier_fk"] = "int";
            model_internal::collectionBaseMap["pro_description"] = "String";
            model_internal::collectionBaseMap["netprice"] = "Number";
            model_internal::collectionBaseMap["pro_qty"] = "int";
            model_internal::collectionBaseMap["on_hand"] = "int";
            model_internal::collectionBaseMap["model_no"] = "int";
            model_internal::collectionBaseMap["pro_total_price"] = "Number";
            model_internal::collectionBaseMap["stamp_number"] = "String";
            model_internal::collectionBaseMap["pro_serialnumber_fk"] = "int";
            model_internal::collectionBaseMap["sup_currency"] = "Object";
            model_internal::collectionBaseMap["pro_remarks"] = "String";
            model_internal::collectionBaseMap["supplier_currency_fk"] = "Object";
        }

        model_internal::_instance = value;
        model_internal::_other_part_noValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForOther_part_no);
        model_internal::_other_part_noValidator.required = true;
        model_internal::_other_part_noValidator.requiredFieldError = "other_part_no is required";
        //model_internal::_other_part_noValidator.source = model_internal::_instance;
        //model_internal::_other_part_noValidator.property = "other_part_no";
        model_internal::_enq_sup_serialnumberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForEnq_sup_serialnumber);
        model_internal::_enq_sup_serialnumberValidator.required = true;
        model_internal::_enq_sup_serialnumberValidator.requiredFieldError = "enq_sup_serialnumber is required";
        //model_internal::_enq_sup_serialnumberValidator.source = model_internal::_instance;
        //model_internal::_enq_sup_serialnumberValidator.property = "enq_sup_serialnumber";
        model_internal::_supplier_serialnumber_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSupplier_serialnumber_fk);
        model_internal::_supplier_serialnumber_fkValidator.required = true;
        model_internal::_supplier_serialnumber_fkValidator.requiredFieldError = "supplier_serialnumber_fk is required";
        //model_internal::_supplier_serialnumber_fkValidator.source = model_internal::_instance;
        //model_internal::_supplier_serialnumber_fkValidator.property = "supplier_serialnumber_fk";
        model_internal::_unitPriceValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForUnitPrice);
        model_internal::_unitPriceValidator.required = true;
        model_internal::_unitPriceValidator.requiredFieldError = "unitPrice is required";
        //model_internal::_unitPriceValidator.source = model_internal::_instance;
        //model_internal::_unitPriceValidator.property = "unitPrice";
        model_internal::_listpriceValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForListprice);
        model_internal::_listpriceValidator.required = true;
        model_internal::_listpriceValidator.requiredFieldError = "listprice is required";
        //model_internal::_listpriceValidator.source = model_internal::_instance;
        //model_internal::_listpriceValidator.property = "listprice";
        model_internal::_pro_nameValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_name);
        model_internal::_pro_nameValidator.required = true;
        model_internal::_pro_nameValidator.requiredFieldError = "pro_name is required";
        //model_internal::_pro_nameValidator.source = model_internal::_instance;
        //model_internal::_pro_nameValidator.property = "pro_name";
        model_internal::_enq_codeValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForEnq_code);
        model_internal::_enq_codeValidator.required = true;
        model_internal::_enq_codeValidator.requiredFieldError = "enq_code is required";
        //model_internal::_enq_codeValidator.source = model_internal::_instance;
        //model_internal::_enq_codeValidator.property = "enq_code";
        model_internal::_part_numberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPart_number);
        model_internal::_part_numberValidator.required = true;
        model_internal::_part_numberValidator.requiredFieldError = "part_number is required";
        //model_internal::_part_numberValidator.source = model_internal::_instance;
        //model_internal::_part_numberValidator.property = "part_number";
        model_internal::_unit_priceValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForUnit_price);
        model_internal::_unit_priceValidator.required = true;
        model_internal::_unit_priceValidator.requiredFieldError = "unit_price is required";
        //model_internal::_unit_priceValidator.source = model_internal::_instance;
        //model_internal::_unit_priceValidator.property = "unit_price";
        model_internal::_enq_remarksValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForEnq_remarks);
        model_internal::_enq_remarksValidator.required = true;
        model_internal::_enq_remarksValidator.requiredFieldError = "enq_remarks is required";
        //model_internal::_enq_remarksValidator.source = model_internal::_instance;
        //model_internal::_enq_remarksValidator.property = "enq_remarks";
        model_internal::_supplier_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSupplier_fk);
        model_internal::_supplier_fkValidator.required = true;
        model_internal::_supplier_fkValidator.requiredFieldError = "supplier_fk is required";
        //model_internal::_supplier_fkValidator.source = model_internal::_instance;
        //model_internal::_supplier_fkValidator.property = "supplier_fk";
        model_internal::_pro_descriptionValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_description);
        model_internal::_pro_descriptionValidator.required = true;
        model_internal::_pro_descriptionValidator.requiredFieldError = "pro_description is required";
        //model_internal::_pro_descriptionValidator.source = model_internal::_instance;
        //model_internal::_pro_descriptionValidator.property = "pro_description";
        model_internal::_netpriceValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForNetprice);
        model_internal::_netpriceValidator.required = true;
        model_internal::_netpriceValidator.requiredFieldError = "netprice is required";
        //model_internal::_netpriceValidator.source = model_internal::_instance;
        //model_internal::_netpriceValidator.property = "netprice";
        model_internal::_pro_qtyValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_qty);
        model_internal::_pro_qtyValidator.required = true;
        model_internal::_pro_qtyValidator.requiredFieldError = "pro_qty is required";
        //model_internal::_pro_qtyValidator.source = model_internal::_instance;
        //model_internal::_pro_qtyValidator.property = "pro_qty";
        model_internal::_currency_serialnumber_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForCurrency_serialnumber_fk);
        model_internal::_currency_serialnumber_fkValidator.required = true;
        model_internal::_currency_serialnumber_fkValidator.requiredFieldError = "currency_serialnumber_fk is required";
        //model_internal::_currency_serialnumber_fkValidator.source = model_internal::_instance;
        //model_internal::_currency_serialnumber_fkValidator.property = "currency_serialnumber_fk";
        model_internal::_enq_dateValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForEnq_date);
        model_internal::_enq_dateValidator.required = true;
        model_internal::_enq_dateValidator.requiredFieldError = "enq_date is required";
        //model_internal::_enq_dateValidator.source = model_internal::_instance;
        //model_internal::_enq_dateValidator.property = "enq_date";
        model_internal::_enq_detserialnumberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForEnq_detserialnumber);
        model_internal::_enq_detserialnumberValidator.required = true;
        model_internal::_enq_detserialnumberValidator.requiredFieldError = "enq_detserialnumber is required";
        //model_internal::_enq_detserialnumberValidator.source = model_internal::_instance;
        //model_internal::_enq_detserialnumberValidator.property = "enq_detserialnumber";
        model_internal::_on_handValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForOn_hand);
        model_internal::_on_handValidator.required = true;
        model_internal::_on_handValidator.requiredFieldError = "on_hand is required";
        //model_internal::_on_handValidator.source = model_internal::_instance;
        //model_internal::_on_handValidator.property = "on_hand";
        model_internal::_model_noValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForModel_no);
        model_internal::_model_noValidator.required = true;
        model_internal::_model_noValidator.requiredFieldError = "model_no is required";
        //model_internal::_model_noValidator.source = model_internal::_instance;
        //model_internal::_model_noValidator.property = "model_no";
        model_internal::_cre_datetimeValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForCre_datetime);
        model_internal::_cre_datetimeValidator.required = true;
        model_internal::_cre_datetimeValidator.requiredFieldError = "cre_datetime is required";
        //model_internal::_cre_datetimeValidator.source = model_internal::_instance;
        //model_internal::_cre_datetimeValidator.property = "cre_datetime";
        model_internal::_pro_total_priceValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_total_price);
        model_internal::_pro_total_priceValidator.required = true;
        model_internal::_pro_total_priceValidator.requiredFieldError = "pro_total_price is required";
        //model_internal::_pro_total_priceValidator.source = model_internal::_instance;
        //model_internal::_pro_total_priceValidator.property = "pro_total_price";
        model_internal::_stamp_numberValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForStamp_number);
        model_internal::_stamp_numberValidator.required = true;
        model_internal::_stamp_numberValidator.requiredFieldError = "stamp_number is required";
        //model_internal::_stamp_numberValidator.source = model_internal::_instance;
        //model_internal::_stamp_numberValidator.property = "stamp_number";
        model_internal::_pro_serialnumber_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_serialnumber_fk);
        model_internal::_pro_serialnumber_fkValidator.required = true;
        model_internal::_pro_serialnumber_fkValidator.requiredFieldError = "pro_serialnumber_fk is required";
        //model_internal::_pro_serialnumber_fkValidator.source = model_internal::_instance;
        //model_internal::_pro_serialnumber_fkValidator.property = "pro_serialnumber_fk";
        model_internal::_sup_currencyValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSup_currency);
        model_internal::_sup_currencyValidator.required = true;
        model_internal::_sup_currencyValidator.requiredFieldError = "sup_currency is required";
        //model_internal::_sup_currencyValidator.source = model_internal::_instance;
        //model_internal::_sup_currencyValidator.property = "sup_currency";
        model_internal::_pro_remarksValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForPro_remarks);
        model_internal::_pro_remarksValidator.required = true;
        model_internal::_pro_remarksValidator.requiredFieldError = "pro_remarks is required";
        //model_internal::_pro_remarksValidator.source = model_internal::_instance;
        //model_internal::_pro_remarksValidator.property = "pro_remarks";
        model_internal::_supplier_currency_fkValidator = new StyleValidator(model_internal::_instance.model_internal::_doValidationForSupplier_currency_fk);
        model_internal::_supplier_currency_fkValidator.required = true;
        model_internal::_supplier_currency_fkValidator.requiredFieldError = "supplier_currency_fk is required";
        //model_internal::_supplier_currency_fkValidator.source = model_internal::_instance;
        //model_internal::_supplier_currency_fkValidator.property = "supplier_currency_fk";
    }

    override public function getEntityName():String
    {
        return model_internal::entityName;
    }

    override public function getProperties():Array
    {
        return model_internal::allProperties;
    }

    override public function getAssociationProperties():Array
    {
        return model_internal::allAssociationProperties;
    }

    override public function getRequiredProperties():Array
    {
         return model_internal::allRequiredProperties;   
    }

    override public function getDataProperties():Array
    {
        return model_internal::dataProperties;
    }

    override public function getGuardedProperties():Array
    {
        return model_internal::guardedProperties;
    }

    override public function getUnguardedProperties():Array
    {
        return model_internal::allAlwaysAvailableProperties;
    }

    override public function getDependants(propertyName:String):Array
    {
       if (model_internal::dataProperties.indexOf(propertyName) == -1)
            throw new Error(propertyName + " is not a data property of entity VoEnquiryHeader");  
            
       return model_internal::dependentsOnMap[propertyName] as Array;  
    }

    override public function getDependedOnServices():Array
    {
        return model_internal::dependedOnServices;
    }

    override public function getCollectionProperties():Array
    {
        return model_internal::collectionProperties;
    }

    override public function getCollectionBase(propertyName:String):String
    {
        if (model_internal::collectionProperties.indexOf(propertyName) == -1)
            throw new Error(propertyName + " is not a collection property of entity VoEnquiryHeader");  

        return model_internal::collectionBaseMap[propertyName];
    }

    override public function getAvailableProperties():com.adobe.fiber.valueobjects.IPropertyIterator
    {
        return new com.adobe.fiber.valueobjects.AvailablePropertyIterator(this);
    }

    override public function getValue(propertyName:String):*
    {
        if (model_internal::allProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " does not exist for entity VoEnquiryHeader");
        }

        return model_internal::_instance[propertyName];
    }

    override public function setValue(propertyName:String, value:*):void
    {
        if (model_internal::dataProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " is not a data property of entity VoEnquiryHeader");
        }

        model_internal::_instance[propertyName] = value;
    }

    override public function getMappedByProperty(associationProperty:String):String
    {
        switch(associationProperty)
        {
            default:
            {
                return null;
            }
        }
    }

    override public function getPropertyLength(propertyName:String):int
    {
        switch(propertyName)
        {
            default:
            {
                return 0;
            }
        }
    }

    override public function isAvailable(propertyName:String):Boolean
    {
        if (model_internal::allProperties.indexOf(propertyName) == -1)
        {
            throw new Error(propertyName + " does not exist for entity VoEnquiryHeader");
        }

        if (model_internal::allAlwaysAvailableProperties.indexOf(propertyName) != -1)
        {
            return true;
        }

        switch(propertyName)
        {
            default:
            {
                return true;
            }
        }
    }

    override public function getIdentityMap():Object
    {
        var returnMap:Object = new Object();

        return returnMap;
    }

    [Bindable(event="propertyChange")]
    override public function get invalidConstraints():Array
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_invalidConstraints;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_invalidConstraints;        
        }
    }

    [Bindable(event="propertyChange")]
    override public function get validationFailureMessages():Array
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_validationFailureMessages;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_validationFailureMessages;
        }
    }

    override public function getDependantInvalidConstraints(propertyName:String):Array
    {
        var dependants:Array = getDependants(propertyName);
        if (dependants.length == 0)
        {
            return emptyArray;
        }

        var currentlyInvalid:Array = invalidConstraints;
        if (currentlyInvalid.length == 0)
        {
            return emptyArray;
        }

        var filterFunc:Function = function(element:*, index:int, arr:Array):Boolean
        {
            return dependants.indexOf(element) > -1;
        }

        return currentlyInvalid.filter(filterFunc);
    }

    /**
     * isValid
     */
    [Bindable(event="propertyChange")] 
    public function get isValid() : Boolean
    {
        if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
        {
            return model_internal::_instance.model_internal::_isValid;
        }
        else
        {
            // recalculate isValid
            model_internal::_instance.model_internal::_isValid = model_internal::_instance.model_internal::calculateIsValid();
            return model_internal::_instance.model_internal::_isValid;
        }
    }

    [Bindable(event="propertyChange")]
    public function get isOther_part_noAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isEnq_sup_serialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSupplier_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isUnitPriceAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isListpriceAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_nameAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isTotal_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isEnq_codeAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCre_userid_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPart_numberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isUnit_priceAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isEnq_remarksAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSupplier_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_descriptionAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isNetpriceAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_qtyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isActivestatusAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCurrency_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isEnq_dateAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCurrent_rateAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isEnq_detserialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isOn_handAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isTotal_amountAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isModel_noAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isCre_datetimeAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isEnq_serialnumberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_total_priceAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isStamp_numberAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_serialnumber_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSup_currencyAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isPro_remarksAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isSupplier_currency_fkAvailable():Boolean
    {
        return true;
    }

    [Bindable(event="propertyChange")]
    public function get isEnq_editAvailable():Boolean
    {
        return true;
    }


    /**
     * derived property recalculation
     */
    public function invalidateDependentOnOther_part_no():void
    {
        if (model_internal::_other_part_noIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfOther_part_no = null;
            model_internal::calculateOther_part_noIsValid();
        }
    }
    public function invalidateDependentOnEnq_sup_serialnumber():void
    {
        if (model_internal::_enq_sup_serialnumberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfEnq_sup_serialnumber = null;
            model_internal::calculateEnq_sup_serialnumberIsValid();
        }
    }
    public function invalidateDependentOnSupplier_serialnumber_fk():void
    {
        if (model_internal::_supplier_serialnumber_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSupplier_serialnumber_fk = null;
            model_internal::calculateSupplier_serialnumber_fkIsValid();
        }
    }
    public function invalidateDependentOnUnitPrice():void
    {
        if (model_internal::_unitPriceIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfUnitPrice = null;
            model_internal::calculateUnitPriceIsValid();
        }
    }
    public function invalidateDependentOnListprice():void
    {
        if (model_internal::_listpriceIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfListprice = null;
            model_internal::calculateListpriceIsValid();
        }
    }
    public function invalidateDependentOnPro_name():void
    {
        if (model_internal::_pro_nameIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_name = null;
            model_internal::calculatePro_nameIsValid();
        }
    }
    public function invalidateDependentOnEnq_code():void
    {
        if (model_internal::_enq_codeIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfEnq_code = null;
            model_internal::calculateEnq_codeIsValid();
        }
    }
    public function invalidateDependentOnPart_number():void
    {
        if (model_internal::_part_numberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPart_number = null;
            model_internal::calculatePart_numberIsValid();
        }
    }
    public function invalidateDependentOnUnit_price():void
    {
        if (model_internal::_unit_priceIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfUnit_price = null;
            model_internal::calculateUnit_priceIsValid();
        }
    }
    public function invalidateDependentOnEnq_remarks():void
    {
        if (model_internal::_enq_remarksIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfEnq_remarks = null;
            model_internal::calculateEnq_remarksIsValid();
        }
    }
    public function invalidateDependentOnSupplier_fk():void
    {
        if (model_internal::_supplier_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSupplier_fk = null;
            model_internal::calculateSupplier_fkIsValid();
        }
    }
    public function invalidateDependentOnPro_description():void
    {
        if (model_internal::_pro_descriptionIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_description = null;
            model_internal::calculatePro_descriptionIsValid();
        }
    }
    public function invalidateDependentOnNetprice():void
    {
        if (model_internal::_netpriceIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfNetprice = null;
            model_internal::calculateNetpriceIsValid();
        }
    }
    public function invalidateDependentOnPro_qty():void
    {
        if (model_internal::_pro_qtyIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_qty = null;
            model_internal::calculatePro_qtyIsValid();
        }
    }
    public function invalidateDependentOnCurrency_serialnumber_fk():void
    {
        if (model_internal::_currency_serialnumber_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfCurrency_serialnumber_fk = null;
            model_internal::calculateCurrency_serialnumber_fkIsValid();
        }
    }
    public function invalidateDependentOnEnq_date():void
    {
        if (model_internal::_enq_dateIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfEnq_date = null;
            model_internal::calculateEnq_dateIsValid();
        }
    }
    public function invalidateDependentOnEnq_detserialnumber():void
    {
        if (model_internal::_enq_detserialnumberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfEnq_detserialnumber = null;
            model_internal::calculateEnq_detserialnumberIsValid();
        }
    }
    public function invalidateDependentOnOn_hand():void
    {
        if (model_internal::_on_handIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfOn_hand = null;
            model_internal::calculateOn_handIsValid();
        }
    }
    public function invalidateDependentOnModel_no():void
    {
        if (model_internal::_model_noIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfModel_no = null;
            model_internal::calculateModel_noIsValid();
        }
    }
    public function invalidateDependentOnCre_datetime():void
    {
        if (model_internal::_cre_datetimeIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfCre_datetime = null;
            model_internal::calculateCre_datetimeIsValid();
        }
    }
    public function invalidateDependentOnPro_total_price():void
    {
        if (model_internal::_pro_total_priceIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_total_price = null;
            model_internal::calculatePro_total_priceIsValid();
        }
    }
    public function invalidateDependentOnStamp_number():void
    {
        if (model_internal::_stamp_numberIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfStamp_number = null;
            model_internal::calculateStamp_numberIsValid();
        }
    }
    public function invalidateDependentOnPro_serialnumber_fk():void
    {
        if (model_internal::_pro_serialnumber_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_serialnumber_fk = null;
            model_internal::calculatePro_serialnumber_fkIsValid();
        }
    }
    public function invalidateDependentOnSup_currency():void
    {
        if (model_internal::_sup_currencyIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSup_currency = null;
            model_internal::calculateSup_currencyIsValid();
        }
    }
    public function invalidateDependentOnPro_remarks():void
    {
        if (model_internal::_pro_remarksIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfPro_remarks = null;
            model_internal::calculatePro_remarksIsValid();
        }
    }
    public function invalidateDependentOnSupplier_currency_fk():void
    {
        if (model_internal::_supplier_currency_fkIsValidCacheInitialized )
        {
            model_internal::_instance.model_internal::_doValidationCacheOfSupplier_currency_fk = null;
            model_internal::calculateSupplier_currency_fkIsValid();
        }
    }

    model_internal function fireChangeEvent(propertyName:String, oldValue:Object, newValue:Object):void
    {
        this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, propertyName, oldValue, newValue));
    }

    [Bindable(event="propertyChange")]   
    public function get other_part_noStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get other_part_noValidator() : StyleValidator
    {
        return model_internal::_other_part_noValidator;
    }

    model_internal function set _other_part_noIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_other_part_noIsValid;         
        if (oldValue !== value)
        {
            model_internal::_other_part_noIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "other_part_noIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get other_part_noIsValid():Boolean
    {
        if (!model_internal::_other_part_noIsValidCacheInitialized)
        {
            model_internal::calculateOther_part_noIsValid();
        }

        return model_internal::_other_part_noIsValid;
    }

    model_internal function calculateOther_part_noIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_other_part_noValidator.validate(model_internal::_instance.other_part_no)
        model_internal::_other_part_noIsValid_der = (valRes.results == null);
        model_internal::_other_part_noIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::other_part_noValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::other_part_noValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get other_part_noValidationFailureMessages():Array
    {
        if (model_internal::_other_part_noValidationFailureMessages == null)
            model_internal::calculateOther_part_noIsValid();

        return _other_part_noValidationFailureMessages;
    }

    model_internal function set other_part_noValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_other_part_noValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_other_part_noValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "other_part_noValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get enq_sup_serialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get enq_sup_serialnumberValidator() : StyleValidator
    {
        return model_internal::_enq_sup_serialnumberValidator;
    }

    model_internal function set _enq_sup_serialnumberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_enq_sup_serialnumberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_enq_sup_serialnumberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "enq_sup_serialnumberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get enq_sup_serialnumberIsValid():Boolean
    {
        if (!model_internal::_enq_sup_serialnumberIsValidCacheInitialized)
        {
            model_internal::calculateEnq_sup_serialnumberIsValid();
        }

        return model_internal::_enq_sup_serialnumberIsValid;
    }

    model_internal function calculateEnq_sup_serialnumberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_enq_sup_serialnumberValidator.validate(model_internal::_instance.enq_sup_serialnumber)
        model_internal::_enq_sup_serialnumberIsValid_der = (valRes.results == null);
        model_internal::_enq_sup_serialnumberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::enq_sup_serialnumberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::enq_sup_serialnumberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get enq_sup_serialnumberValidationFailureMessages():Array
    {
        if (model_internal::_enq_sup_serialnumberValidationFailureMessages == null)
            model_internal::calculateEnq_sup_serialnumberIsValid();

        return _enq_sup_serialnumberValidationFailureMessages;
    }

    model_internal function set enq_sup_serialnumberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_enq_sup_serialnumberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_enq_sup_serialnumberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "enq_sup_serialnumberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get supplier_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get supplier_serialnumber_fkValidator() : StyleValidator
    {
        return model_internal::_supplier_serialnumber_fkValidator;
    }

    model_internal function set _supplier_serialnumber_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_supplier_serialnumber_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_supplier_serialnumber_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "supplier_serialnumber_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get supplier_serialnumber_fkIsValid():Boolean
    {
        if (!model_internal::_supplier_serialnumber_fkIsValidCacheInitialized)
        {
            model_internal::calculateSupplier_serialnumber_fkIsValid();
        }

        return model_internal::_supplier_serialnumber_fkIsValid;
    }

    model_internal function calculateSupplier_serialnumber_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_supplier_serialnumber_fkValidator.validate(model_internal::_instance.supplier_serialnumber_fk)
        model_internal::_supplier_serialnumber_fkIsValid_der = (valRes.results == null);
        model_internal::_supplier_serialnumber_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::supplier_serialnumber_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::supplier_serialnumber_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get supplier_serialnumber_fkValidationFailureMessages():Array
    {
        if (model_internal::_supplier_serialnumber_fkValidationFailureMessages == null)
            model_internal::calculateSupplier_serialnumber_fkIsValid();

        return _supplier_serialnumber_fkValidationFailureMessages;
    }

    model_internal function set supplier_serialnumber_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_supplier_serialnumber_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_supplier_serialnumber_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "supplier_serialnumber_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get unitPriceStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get unitPriceValidator() : StyleValidator
    {
        return model_internal::_unitPriceValidator;
    }

    model_internal function set _unitPriceIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_unitPriceIsValid;         
        if (oldValue !== value)
        {
            model_internal::_unitPriceIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "unitPriceIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get unitPriceIsValid():Boolean
    {
        if (!model_internal::_unitPriceIsValidCacheInitialized)
        {
            model_internal::calculateUnitPriceIsValid();
        }

        return model_internal::_unitPriceIsValid;
    }

    model_internal function calculateUnitPriceIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_unitPriceValidator.validate(model_internal::_instance.unitPrice)
        model_internal::_unitPriceIsValid_der = (valRes.results == null);
        model_internal::_unitPriceIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::unitPriceValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::unitPriceValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get unitPriceValidationFailureMessages():Array
    {
        if (model_internal::_unitPriceValidationFailureMessages == null)
            model_internal::calculateUnitPriceIsValid();

        return _unitPriceValidationFailureMessages;
    }

    model_internal function set unitPriceValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_unitPriceValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_unitPriceValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "unitPriceValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get listpriceStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get listpriceValidator() : StyleValidator
    {
        return model_internal::_listpriceValidator;
    }

    model_internal function set _listpriceIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_listpriceIsValid;         
        if (oldValue !== value)
        {
            model_internal::_listpriceIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "listpriceIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get listpriceIsValid():Boolean
    {
        if (!model_internal::_listpriceIsValidCacheInitialized)
        {
            model_internal::calculateListpriceIsValid();
        }

        return model_internal::_listpriceIsValid;
    }

    model_internal function calculateListpriceIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_listpriceValidator.validate(model_internal::_instance.listprice)
        model_internal::_listpriceIsValid_der = (valRes.results == null);
        model_internal::_listpriceIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::listpriceValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::listpriceValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get listpriceValidationFailureMessages():Array
    {
        if (model_internal::_listpriceValidationFailureMessages == null)
            model_internal::calculateListpriceIsValid();

        return _listpriceValidationFailureMessages;
    }

    model_internal function set listpriceValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_listpriceValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_listpriceValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "listpriceValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_nameStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_nameValidator() : StyleValidator
    {
        return model_internal::_pro_nameValidator;
    }

    model_internal function set _pro_nameIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_nameIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_nameIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_nameIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_nameIsValid():Boolean
    {
        if (!model_internal::_pro_nameIsValidCacheInitialized)
        {
            model_internal::calculatePro_nameIsValid();
        }

        return model_internal::_pro_nameIsValid;
    }

    model_internal function calculatePro_nameIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_nameValidator.validate(model_internal::_instance.pro_name)
        model_internal::_pro_nameIsValid_der = (valRes.results == null);
        model_internal::_pro_nameIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_nameValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_nameValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_nameValidationFailureMessages():Array
    {
        if (model_internal::_pro_nameValidationFailureMessages == null)
            model_internal::calculatePro_nameIsValid();

        return _pro_nameValidationFailureMessages;
    }

    model_internal function set pro_nameValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_nameValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_nameValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_nameValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get total_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get enq_codeStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get enq_codeValidator() : StyleValidator
    {
        return model_internal::_enq_codeValidator;
    }

    model_internal function set _enq_codeIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_enq_codeIsValid;         
        if (oldValue !== value)
        {
            model_internal::_enq_codeIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "enq_codeIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get enq_codeIsValid():Boolean
    {
        if (!model_internal::_enq_codeIsValidCacheInitialized)
        {
            model_internal::calculateEnq_codeIsValid();
        }

        return model_internal::_enq_codeIsValid;
    }

    model_internal function calculateEnq_codeIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_enq_codeValidator.validate(model_internal::_instance.enq_code)
        model_internal::_enq_codeIsValid_der = (valRes.results == null);
        model_internal::_enq_codeIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::enq_codeValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::enq_codeValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get enq_codeValidationFailureMessages():Array
    {
        if (model_internal::_enq_codeValidationFailureMessages == null)
            model_internal::calculateEnq_codeIsValid();

        return _enq_codeValidationFailureMessages;
    }

    model_internal function set enq_codeValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_enq_codeValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_enq_codeValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "enq_codeValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get cre_userid_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get part_numberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get part_numberValidator() : StyleValidator
    {
        return model_internal::_part_numberValidator;
    }

    model_internal function set _part_numberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_part_numberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_part_numberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "part_numberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get part_numberIsValid():Boolean
    {
        if (!model_internal::_part_numberIsValidCacheInitialized)
        {
            model_internal::calculatePart_numberIsValid();
        }

        return model_internal::_part_numberIsValid;
    }

    model_internal function calculatePart_numberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_part_numberValidator.validate(model_internal::_instance.part_number)
        model_internal::_part_numberIsValid_der = (valRes.results == null);
        model_internal::_part_numberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::part_numberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::part_numberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get part_numberValidationFailureMessages():Array
    {
        if (model_internal::_part_numberValidationFailureMessages == null)
            model_internal::calculatePart_numberIsValid();

        return _part_numberValidationFailureMessages;
    }

    model_internal function set part_numberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_part_numberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_part_numberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "part_numberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get unit_priceStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get unit_priceValidator() : StyleValidator
    {
        return model_internal::_unit_priceValidator;
    }

    model_internal function set _unit_priceIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_unit_priceIsValid;         
        if (oldValue !== value)
        {
            model_internal::_unit_priceIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "unit_priceIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get unit_priceIsValid():Boolean
    {
        if (!model_internal::_unit_priceIsValidCacheInitialized)
        {
            model_internal::calculateUnit_priceIsValid();
        }

        return model_internal::_unit_priceIsValid;
    }

    model_internal function calculateUnit_priceIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_unit_priceValidator.validate(model_internal::_instance.unit_price)
        model_internal::_unit_priceIsValid_der = (valRes.results == null);
        model_internal::_unit_priceIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::unit_priceValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::unit_priceValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get unit_priceValidationFailureMessages():Array
    {
        if (model_internal::_unit_priceValidationFailureMessages == null)
            model_internal::calculateUnit_priceIsValid();

        return _unit_priceValidationFailureMessages;
    }

    model_internal function set unit_priceValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_unit_priceValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_unit_priceValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "unit_priceValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get enq_remarksStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get enq_remarksValidator() : StyleValidator
    {
        return model_internal::_enq_remarksValidator;
    }

    model_internal function set _enq_remarksIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_enq_remarksIsValid;         
        if (oldValue !== value)
        {
            model_internal::_enq_remarksIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "enq_remarksIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get enq_remarksIsValid():Boolean
    {
        if (!model_internal::_enq_remarksIsValidCacheInitialized)
        {
            model_internal::calculateEnq_remarksIsValid();
        }

        return model_internal::_enq_remarksIsValid;
    }

    model_internal function calculateEnq_remarksIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_enq_remarksValidator.validate(model_internal::_instance.enq_remarks)
        model_internal::_enq_remarksIsValid_der = (valRes.results == null);
        model_internal::_enq_remarksIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::enq_remarksValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::enq_remarksValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get enq_remarksValidationFailureMessages():Array
    {
        if (model_internal::_enq_remarksValidationFailureMessages == null)
            model_internal::calculateEnq_remarksIsValid();

        return _enq_remarksValidationFailureMessages;
    }

    model_internal function set enq_remarksValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_enq_remarksValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_enq_remarksValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "enq_remarksValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get supplier_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get supplier_fkValidator() : StyleValidator
    {
        return model_internal::_supplier_fkValidator;
    }

    model_internal function set _supplier_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_supplier_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_supplier_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "supplier_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get supplier_fkIsValid():Boolean
    {
        if (!model_internal::_supplier_fkIsValidCacheInitialized)
        {
            model_internal::calculateSupplier_fkIsValid();
        }

        return model_internal::_supplier_fkIsValid;
    }

    model_internal function calculateSupplier_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_supplier_fkValidator.validate(model_internal::_instance.supplier_fk)
        model_internal::_supplier_fkIsValid_der = (valRes.results == null);
        model_internal::_supplier_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::supplier_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::supplier_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get supplier_fkValidationFailureMessages():Array
    {
        if (model_internal::_supplier_fkValidationFailureMessages == null)
            model_internal::calculateSupplier_fkIsValid();

        return _supplier_fkValidationFailureMessages;
    }

    model_internal function set supplier_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_supplier_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_supplier_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "supplier_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_descriptionStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_descriptionValidator() : StyleValidator
    {
        return model_internal::_pro_descriptionValidator;
    }

    model_internal function set _pro_descriptionIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_descriptionIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_descriptionIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_descriptionIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_descriptionIsValid():Boolean
    {
        if (!model_internal::_pro_descriptionIsValidCacheInitialized)
        {
            model_internal::calculatePro_descriptionIsValid();
        }

        return model_internal::_pro_descriptionIsValid;
    }

    model_internal function calculatePro_descriptionIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_descriptionValidator.validate(model_internal::_instance.pro_description)
        model_internal::_pro_descriptionIsValid_der = (valRes.results == null);
        model_internal::_pro_descriptionIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_descriptionValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_descriptionValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_descriptionValidationFailureMessages():Array
    {
        if (model_internal::_pro_descriptionValidationFailureMessages == null)
            model_internal::calculatePro_descriptionIsValid();

        return _pro_descriptionValidationFailureMessages;
    }

    model_internal function set pro_descriptionValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_descriptionValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_descriptionValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_descriptionValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get netpriceStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get netpriceValidator() : StyleValidator
    {
        return model_internal::_netpriceValidator;
    }

    model_internal function set _netpriceIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_netpriceIsValid;         
        if (oldValue !== value)
        {
            model_internal::_netpriceIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "netpriceIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get netpriceIsValid():Boolean
    {
        if (!model_internal::_netpriceIsValidCacheInitialized)
        {
            model_internal::calculateNetpriceIsValid();
        }

        return model_internal::_netpriceIsValid;
    }

    model_internal function calculateNetpriceIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_netpriceValidator.validate(model_internal::_instance.netprice)
        model_internal::_netpriceIsValid_der = (valRes.results == null);
        model_internal::_netpriceIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::netpriceValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::netpriceValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get netpriceValidationFailureMessages():Array
    {
        if (model_internal::_netpriceValidationFailureMessages == null)
            model_internal::calculateNetpriceIsValid();

        return _netpriceValidationFailureMessages;
    }

    model_internal function set netpriceValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_netpriceValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_netpriceValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "netpriceValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_qtyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_qtyValidator() : StyleValidator
    {
        return model_internal::_pro_qtyValidator;
    }

    model_internal function set _pro_qtyIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_qtyIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_qtyIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_qtyIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_qtyIsValid():Boolean
    {
        if (!model_internal::_pro_qtyIsValidCacheInitialized)
        {
            model_internal::calculatePro_qtyIsValid();
        }

        return model_internal::_pro_qtyIsValid;
    }

    model_internal function calculatePro_qtyIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_qtyValidator.validate(model_internal::_instance.pro_qty)
        model_internal::_pro_qtyIsValid_der = (valRes.results == null);
        model_internal::_pro_qtyIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_qtyValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_qtyValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_qtyValidationFailureMessages():Array
    {
        if (model_internal::_pro_qtyValidationFailureMessages == null)
            model_internal::calculatePro_qtyIsValid();

        return _pro_qtyValidationFailureMessages;
    }

    model_internal function set pro_qtyValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_qtyValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_qtyValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_qtyValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get activestatusStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get currency_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get currency_serialnumber_fkValidator() : StyleValidator
    {
        return model_internal::_currency_serialnumber_fkValidator;
    }

    model_internal function set _currency_serialnumber_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_currency_serialnumber_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_currency_serialnumber_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "currency_serialnumber_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get currency_serialnumber_fkIsValid():Boolean
    {
        if (!model_internal::_currency_serialnumber_fkIsValidCacheInitialized)
        {
            model_internal::calculateCurrency_serialnumber_fkIsValid();
        }

        return model_internal::_currency_serialnumber_fkIsValid;
    }

    model_internal function calculateCurrency_serialnumber_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_currency_serialnumber_fkValidator.validate(model_internal::_instance.currency_serialnumber_fk)
        model_internal::_currency_serialnumber_fkIsValid_der = (valRes.results == null);
        model_internal::_currency_serialnumber_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::currency_serialnumber_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::currency_serialnumber_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get currency_serialnumber_fkValidationFailureMessages():Array
    {
        if (model_internal::_currency_serialnumber_fkValidationFailureMessages == null)
            model_internal::calculateCurrency_serialnumber_fkIsValid();

        return _currency_serialnumber_fkValidationFailureMessages;
    }

    model_internal function set currency_serialnumber_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_currency_serialnumber_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_currency_serialnumber_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "currency_serialnumber_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get enq_dateStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get enq_dateValidator() : StyleValidator
    {
        return model_internal::_enq_dateValidator;
    }

    model_internal function set _enq_dateIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_enq_dateIsValid;         
        if (oldValue !== value)
        {
            model_internal::_enq_dateIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "enq_dateIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get enq_dateIsValid():Boolean
    {
        if (!model_internal::_enq_dateIsValidCacheInitialized)
        {
            model_internal::calculateEnq_dateIsValid();
        }

        return model_internal::_enq_dateIsValid;
    }

    model_internal function calculateEnq_dateIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_enq_dateValidator.validate(model_internal::_instance.enq_date)
        model_internal::_enq_dateIsValid_der = (valRes.results == null);
        model_internal::_enq_dateIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::enq_dateValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::enq_dateValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get enq_dateValidationFailureMessages():Array
    {
        if (model_internal::_enq_dateValidationFailureMessages == null)
            model_internal::calculateEnq_dateIsValid();

        return _enq_dateValidationFailureMessages;
    }

    model_internal function set enq_dateValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_enq_dateValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_enq_dateValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "enq_dateValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get current_rateStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get enq_detserialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get enq_detserialnumberValidator() : StyleValidator
    {
        return model_internal::_enq_detserialnumberValidator;
    }

    model_internal function set _enq_detserialnumberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_enq_detserialnumberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_enq_detserialnumberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "enq_detserialnumberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get enq_detserialnumberIsValid():Boolean
    {
        if (!model_internal::_enq_detserialnumberIsValidCacheInitialized)
        {
            model_internal::calculateEnq_detserialnumberIsValid();
        }

        return model_internal::_enq_detserialnumberIsValid;
    }

    model_internal function calculateEnq_detserialnumberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_enq_detserialnumberValidator.validate(model_internal::_instance.enq_detserialnumber)
        model_internal::_enq_detserialnumberIsValid_der = (valRes.results == null);
        model_internal::_enq_detserialnumberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::enq_detserialnumberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::enq_detserialnumberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get enq_detserialnumberValidationFailureMessages():Array
    {
        if (model_internal::_enq_detserialnumberValidationFailureMessages == null)
            model_internal::calculateEnq_detserialnumberIsValid();

        return _enq_detserialnumberValidationFailureMessages;
    }

    model_internal function set enq_detserialnumberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_enq_detserialnumberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_enq_detserialnumberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "enq_detserialnumberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get on_handStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get on_handValidator() : StyleValidator
    {
        return model_internal::_on_handValidator;
    }

    model_internal function set _on_handIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_on_handIsValid;         
        if (oldValue !== value)
        {
            model_internal::_on_handIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "on_handIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get on_handIsValid():Boolean
    {
        if (!model_internal::_on_handIsValidCacheInitialized)
        {
            model_internal::calculateOn_handIsValid();
        }

        return model_internal::_on_handIsValid;
    }

    model_internal function calculateOn_handIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_on_handValidator.validate(model_internal::_instance.on_hand)
        model_internal::_on_handIsValid_der = (valRes.results == null);
        model_internal::_on_handIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::on_handValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::on_handValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get on_handValidationFailureMessages():Array
    {
        if (model_internal::_on_handValidationFailureMessages == null)
            model_internal::calculateOn_handIsValid();

        return _on_handValidationFailureMessages;
    }

    model_internal function set on_handValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_on_handValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_on_handValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "on_handValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get total_amountStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get model_noStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get model_noValidator() : StyleValidator
    {
        return model_internal::_model_noValidator;
    }

    model_internal function set _model_noIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_model_noIsValid;         
        if (oldValue !== value)
        {
            model_internal::_model_noIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "model_noIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get model_noIsValid():Boolean
    {
        if (!model_internal::_model_noIsValidCacheInitialized)
        {
            model_internal::calculateModel_noIsValid();
        }

        return model_internal::_model_noIsValid;
    }

    model_internal function calculateModel_noIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_model_noValidator.validate(model_internal::_instance.model_no)
        model_internal::_model_noIsValid_der = (valRes.results == null);
        model_internal::_model_noIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::model_noValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::model_noValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get model_noValidationFailureMessages():Array
    {
        if (model_internal::_model_noValidationFailureMessages == null)
            model_internal::calculateModel_noIsValid();

        return _model_noValidationFailureMessages;
    }

    model_internal function set model_noValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_model_noValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_model_noValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "model_noValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get cre_datetimeStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get cre_datetimeValidator() : StyleValidator
    {
        return model_internal::_cre_datetimeValidator;
    }

    model_internal function set _cre_datetimeIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_cre_datetimeIsValid;         
        if (oldValue !== value)
        {
            model_internal::_cre_datetimeIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_datetimeIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get cre_datetimeIsValid():Boolean
    {
        if (!model_internal::_cre_datetimeIsValidCacheInitialized)
        {
            model_internal::calculateCre_datetimeIsValid();
        }

        return model_internal::_cre_datetimeIsValid;
    }

    model_internal function calculateCre_datetimeIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_cre_datetimeValidator.validate(model_internal::_instance.cre_datetime)
        model_internal::_cre_datetimeIsValid_der = (valRes.results == null);
        model_internal::_cre_datetimeIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::cre_datetimeValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::cre_datetimeValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get cre_datetimeValidationFailureMessages():Array
    {
        if (model_internal::_cre_datetimeValidationFailureMessages == null)
            model_internal::calculateCre_datetimeIsValid();

        return _cre_datetimeValidationFailureMessages;
    }

    model_internal function set cre_datetimeValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_cre_datetimeValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_cre_datetimeValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "cre_datetimeValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get enq_serialnumberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    [Bindable(event="propertyChange")]   
    public function get pro_total_priceStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_total_priceValidator() : StyleValidator
    {
        return model_internal::_pro_total_priceValidator;
    }

    model_internal function set _pro_total_priceIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_total_priceIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_total_priceIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_total_priceIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_total_priceIsValid():Boolean
    {
        if (!model_internal::_pro_total_priceIsValidCacheInitialized)
        {
            model_internal::calculatePro_total_priceIsValid();
        }

        return model_internal::_pro_total_priceIsValid;
    }

    model_internal function calculatePro_total_priceIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_total_priceValidator.validate(model_internal::_instance.pro_total_price)
        model_internal::_pro_total_priceIsValid_der = (valRes.results == null);
        model_internal::_pro_total_priceIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_total_priceValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_total_priceValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_total_priceValidationFailureMessages():Array
    {
        if (model_internal::_pro_total_priceValidationFailureMessages == null)
            model_internal::calculatePro_total_priceIsValid();

        return _pro_total_priceValidationFailureMessages;
    }

    model_internal function set pro_total_priceValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_total_priceValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_total_priceValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_total_priceValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get stamp_numberStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get stamp_numberValidator() : StyleValidator
    {
        return model_internal::_stamp_numberValidator;
    }

    model_internal function set _stamp_numberIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_stamp_numberIsValid;         
        if (oldValue !== value)
        {
            model_internal::_stamp_numberIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "stamp_numberIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get stamp_numberIsValid():Boolean
    {
        if (!model_internal::_stamp_numberIsValidCacheInitialized)
        {
            model_internal::calculateStamp_numberIsValid();
        }

        return model_internal::_stamp_numberIsValid;
    }

    model_internal function calculateStamp_numberIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_stamp_numberValidator.validate(model_internal::_instance.stamp_number)
        model_internal::_stamp_numberIsValid_der = (valRes.results == null);
        model_internal::_stamp_numberIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::stamp_numberValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::stamp_numberValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get stamp_numberValidationFailureMessages():Array
    {
        if (model_internal::_stamp_numberValidationFailureMessages == null)
            model_internal::calculateStamp_numberIsValid();

        return _stamp_numberValidationFailureMessages;
    }

    model_internal function set stamp_numberValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_stamp_numberValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_stamp_numberValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "stamp_numberValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_serialnumber_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_serialnumber_fkValidator() : StyleValidator
    {
        return model_internal::_pro_serialnumber_fkValidator;
    }

    model_internal function set _pro_serialnumber_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_serialnumber_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_serialnumber_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_serialnumber_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_serialnumber_fkIsValid():Boolean
    {
        if (!model_internal::_pro_serialnumber_fkIsValidCacheInitialized)
        {
            model_internal::calculatePro_serialnumber_fkIsValid();
        }

        return model_internal::_pro_serialnumber_fkIsValid;
    }

    model_internal function calculatePro_serialnumber_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_serialnumber_fkValidator.validate(model_internal::_instance.pro_serialnumber_fk)
        model_internal::_pro_serialnumber_fkIsValid_der = (valRes.results == null);
        model_internal::_pro_serialnumber_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_serialnumber_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_serialnumber_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_serialnumber_fkValidationFailureMessages():Array
    {
        if (model_internal::_pro_serialnumber_fkValidationFailureMessages == null)
            model_internal::calculatePro_serialnumber_fkIsValid();

        return _pro_serialnumber_fkValidationFailureMessages;
    }

    model_internal function set pro_serialnumber_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_serialnumber_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_serialnumber_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_serialnumber_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get sup_currencyStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get sup_currencyValidator() : StyleValidator
    {
        return model_internal::_sup_currencyValidator;
    }

    model_internal function set _sup_currencyIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_sup_currencyIsValid;         
        if (oldValue !== value)
        {
            model_internal::_sup_currencyIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sup_currencyIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get sup_currencyIsValid():Boolean
    {
        if (!model_internal::_sup_currencyIsValidCacheInitialized)
        {
            model_internal::calculateSup_currencyIsValid();
        }

        return model_internal::_sup_currencyIsValid;
    }

    model_internal function calculateSup_currencyIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_sup_currencyValidator.validate(model_internal::_instance.sup_currency)
        model_internal::_sup_currencyIsValid_der = (valRes.results == null);
        model_internal::_sup_currencyIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::sup_currencyValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::sup_currencyValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get sup_currencyValidationFailureMessages():Array
    {
        if (model_internal::_sup_currencyValidationFailureMessages == null)
            model_internal::calculateSup_currencyIsValid();

        return _sup_currencyValidationFailureMessages;
    }

    model_internal function set sup_currencyValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_sup_currencyValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_sup_currencyValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "sup_currencyValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get pro_remarksStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get pro_remarksValidator() : StyleValidator
    {
        return model_internal::_pro_remarksValidator;
    }

    model_internal function set _pro_remarksIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_pro_remarksIsValid;         
        if (oldValue !== value)
        {
            model_internal::_pro_remarksIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_remarksIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get pro_remarksIsValid():Boolean
    {
        if (!model_internal::_pro_remarksIsValidCacheInitialized)
        {
            model_internal::calculatePro_remarksIsValid();
        }

        return model_internal::_pro_remarksIsValid;
    }

    model_internal function calculatePro_remarksIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_pro_remarksValidator.validate(model_internal::_instance.pro_remarks)
        model_internal::_pro_remarksIsValid_der = (valRes.results == null);
        model_internal::_pro_remarksIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::pro_remarksValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::pro_remarksValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get pro_remarksValidationFailureMessages():Array
    {
        if (model_internal::_pro_remarksValidationFailureMessages == null)
            model_internal::calculatePro_remarksIsValid();

        return _pro_remarksValidationFailureMessages;
    }

    model_internal function set pro_remarksValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_pro_remarksValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_pro_remarksValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "pro_remarksValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get supplier_currency_fkStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }

    public function get supplier_currency_fkValidator() : StyleValidator
    {
        return model_internal::_supplier_currency_fkValidator;
    }

    model_internal function set _supplier_currency_fkIsValid_der(value:Boolean):void 
    {
        var oldValue:Boolean = model_internal::_supplier_currency_fkIsValid;         
        if (oldValue !== value)
        {
            model_internal::_supplier_currency_fkIsValid = value;
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "supplier_currency_fkIsValid", oldValue, value));
        }                             
    }

    [Bindable(event="propertyChange")]
    public function get supplier_currency_fkIsValid():Boolean
    {
        if (!model_internal::_supplier_currency_fkIsValidCacheInitialized)
        {
            model_internal::calculateSupplier_currency_fkIsValid();
        }

        return model_internal::_supplier_currency_fkIsValid;
    }

    model_internal function calculateSupplier_currency_fkIsValid():void
    {
        var valRes:ValidationResultEvent = model_internal::_supplier_currency_fkValidator.validate(model_internal::_instance.supplier_currency_fk)
        model_internal::_supplier_currency_fkIsValid_der = (valRes.results == null);
        model_internal::_supplier_currency_fkIsValidCacheInitialized = true;
        if (valRes.results == null)
             model_internal::supplier_currency_fkValidationFailureMessages_der = emptyArray;
        else
        {
            var _valFailures:Array = new Array();
            for (var a:int = 0 ; a<valRes.results.length ; a++)
            {
                _valFailures.push(valRes.results[a].errorMessage);
            }
            model_internal::supplier_currency_fkValidationFailureMessages_der = _valFailures;
        }
    }

    [Bindable(event="propertyChange")]
    public function get supplier_currency_fkValidationFailureMessages():Array
    {
        if (model_internal::_supplier_currency_fkValidationFailureMessages == null)
            model_internal::calculateSupplier_currency_fkIsValid();

        return _supplier_currency_fkValidationFailureMessages;
    }

    model_internal function set supplier_currency_fkValidationFailureMessages_der(value:Array) : void
    {
        var oldValue:Array = model_internal::_supplier_currency_fkValidationFailureMessages;

        var needUpdate : Boolean = false;
        if (oldValue == null)
            needUpdate = true;
    
        // avoid firing the event when old and new value are different empty arrays
        if (!needUpdate && (oldValue !== value && (oldValue.length > 0 || value.length > 0)))
        {
            if (oldValue.length == value.length)
            {
                for (var a:int=0; a < oldValue.length; a++)
                {
                    if (oldValue[a] !== value[a])
                    {
                        needUpdate = true;
                        break;
                    }
                }
            }
            else
            {
                needUpdate = true;
            }
        }

        if (needUpdate)
        {
            model_internal::_supplier_currency_fkValidationFailureMessages = value;   
            this.dispatchEvent(mx.events.PropertyChangeEvent.createUpdateEvent(this, "supplier_currency_fkValidationFailureMessages", oldValue, value));
            // Only execute calculateIsValid if it has been called before, to update the validationFailureMessages for
            // the entire entity.
            if (model_internal::_instance.model_internal::_cacheInitialized_isValid)
            {
                model_internal::_instance.model_internal::isValid_der = model_internal::_instance.model_internal::calculateIsValid();
            }
        }
    }

    [Bindable(event="propertyChange")]   
    public function get enq_editStyle():com.adobe.fiber.styles.Style
    {
        return model_internal::_nullStyle;
    }


     /**
     * 
     * @inheritDoc 
     */ 
     override public function getStyle(propertyName:String):com.adobe.fiber.styles.IStyle
     {
         switch(propertyName)
         {
            default:
            {
                return null;
            }
         }
     }
     
     /**
     * 
     * @inheritDoc 
     *  
     */  
     override public function getPropertyValidationFailureMessages(propertyName:String):Array
     {
         switch(propertyName)
         {
            case("other_part_no"):
            {
                return other_part_noValidationFailureMessages;
            }
            case("enq_sup_serialnumber"):
            {
                return enq_sup_serialnumberValidationFailureMessages;
            }
            case("supplier_serialnumber_fk"):
            {
                return supplier_serialnumber_fkValidationFailureMessages;
            }
            case("unitPrice"):
            {
                return unitPriceValidationFailureMessages;
            }
            case("listprice"):
            {
                return listpriceValidationFailureMessages;
            }
            case("pro_name"):
            {
                return pro_nameValidationFailureMessages;
            }
            case("enq_code"):
            {
                return enq_codeValidationFailureMessages;
            }
            case("part_number"):
            {
                return part_numberValidationFailureMessages;
            }
            case("unit_price"):
            {
                return unit_priceValidationFailureMessages;
            }
            case("enq_remarks"):
            {
                return enq_remarksValidationFailureMessages;
            }
            case("supplier_fk"):
            {
                return supplier_fkValidationFailureMessages;
            }
            case("pro_description"):
            {
                return pro_descriptionValidationFailureMessages;
            }
            case("netprice"):
            {
                return netpriceValidationFailureMessages;
            }
            case("pro_qty"):
            {
                return pro_qtyValidationFailureMessages;
            }
            case("currency_serialnumber_fk"):
            {
                return currency_serialnumber_fkValidationFailureMessages;
            }
            case("enq_date"):
            {
                return enq_dateValidationFailureMessages;
            }
            case("enq_detserialnumber"):
            {
                return enq_detserialnumberValidationFailureMessages;
            }
            case("on_hand"):
            {
                return on_handValidationFailureMessages;
            }
            case("model_no"):
            {
                return model_noValidationFailureMessages;
            }
            case("cre_datetime"):
            {
                return cre_datetimeValidationFailureMessages;
            }
            case("pro_total_price"):
            {
                return pro_total_priceValidationFailureMessages;
            }
            case("stamp_number"):
            {
                return stamp_numberValidationFailureMessages;
            }
            case("pro_serialnumber_fk"):
            {
                return pro_serialnumber_fkValidationFailureMessages;
            }
            case("sup_currency"):
            {
                return sup_currencyValidationFailureMessages;
            }
            case("pro_remarks"):
            {
                return pro_remarksValidationFailureMessages;
            }
            case("supplier_currency_fk"):
            {
                return supplier_currency_fkValidationFailureMessages;
            }
            default:
            {
                return emptyArray;
            }
         }
     }

}

}
